package com.crm.service;


import com.crm.domain.dto.LoginDto;
import com.crm.domain.entity.CaptchaResponse;
import com.crm.domain.vo.UserVo;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

public interface LoginService {
    /**
     * 用户登录
     * @param loginDto
     * @return
     */
    UserVo login(LoginDto loginDto);

    /**
     * 创建验证码，存入redis
     * @param request
     * @return
     */
    CaptchaResponse createCode(HttpServletRequest request) throws IOException;
}
